package com.mes.md.service.impl;

import com.mes.md.mapper.ItemMapper;
import com.mes.md.service.ItemService;
import com.mes.pojo.md.Item;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author hitsune
 * @Company kafu chino
 * @Description
 * @Time 2024/10/20 19:55
 */

@Service
public class ItemServiceImpl implements ItemService {
    @Autowired
    private ItemMapper itemMapper;

    @Override
    public List<Item> queryItemList(Item item) {
        return itemMapper.queryItemList(item);
    }

    @Override
    public Integer addItem(Item item) {
        return itemMapper.addItem(item);
    }

    @Override
    public Item queryItemById(Long itemId) {
        return itemMapper.queryItemById(itemId);
    }

    @Override
    public Integer updateItem(Item item) {
        return itemMapper.updateItem(item);
    }

    @Override
    public Integer deleteItems(List<Item> items) {
        return itemMapper.deleteItems(items);
    }
}
